#include <iostream>
#include <string>
#include <functional>
#include <vector>

void print(const std::string &str, int num)
{
    std::cout << str << num << std::endl;
}

int main()
{
    using Task = std::function<void()>;
    std::vector<Task> arry;
    arry.push_back(std::bind(print, "hello", 10));
    arry.push_back(std::bind(print, "asd", 120));
    arry.push_back(std::bind(print, "wdw", 210));
    arry.push_back(std::bind(print, "def", 140));
    arry.push_back(std::bind(print, "wewe", 160));
    arry[0]();
    for(auto &f:arry){
        f();
    }
    return 0;
}